package com.gxa.uhome.service;

import com.gxa.uhome.pojo.Shipper;

import java.util.List;

/**
 * @Author: XHZ
 * @Date: 11:34 2021/6/7
 */
public interface ShipperService {
    Integer insert(Shipper shipper);

    List<Shipper> selectLikeByPage(String nameOrPhone, Boolean isUse, Integer offset, Integer size);

    List<Shipper> selectByPage(Boolean isUse, Integer offset, Integer size);

    Integer deleteByPhone(String phone);

    Integer update(Shipper shipper);

    Integer updateIsUseById(Integer id, Boolean isUse);

    Integer selectMaxId();

    Integer count();

    Shipper loginByPhone(String phone, String pwd);

    Shipper selectNameByPhone(String phone);
}
